package com.store.controller;

import com.store.domain.R;
import com.store.service.LogService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author yu
 * @date 2024/6/26
 */
@RestController
@RequestMapping("log")
public class LogController {
    @Resource
    private LogService logService;
    @GetMapping("getLogPage")
    public R getLogPage(Integer pageNum, Integer pageSize, String username) {
        return logService.getLogPage(pageNum, pageSize, username);
    }
    @DeleteMapping("deleteLog/{ids}")
    public R deleteLog(@PathVariable Integer[] ids) {
        return logService.deleteLog(ids);
    }
}
